<template lang="pug">
  view-box.licence
    //- h1 {{ msg }}
    img(src="../assets/licence.png")
    .confirm()
      img(src="../assets/confirm.png" @click="confirm")
</template>

<script>
// import router from '../router'
// import homeService from '@/api/home'
export default {
  name: 'Licence',
  data () {
    return {
    }
  },
  methods: {    
    confirm (){
      var wechatConfig = require('../../wechatConfig')
      var redirectUri = encodeURIComponent('http://www.game2385.com/index.html')
      var url = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=' + wechatConfig.appID + '&redirect_uri=' + redirectUri + '&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect'
      window.location.href = url
    }
  },
  mounted () {
  },
  created () {
    document.title = '用户协议'
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style lang="less">
  .licence{
    text-align: center;
    position: relative;
    width: 100%;
    height: auto;
    padding-bottom: 0px;
    img{
      width: 90%;
      margin-top:20px;
    }
    .confirm{
      position: absolute;
      width: 100%;
      height: 40px;
      bottom:180px;
      left: 0;
      text-align: center;
      img{
        width: 100px;
        height: 40px;
      }
    }
  }
  
</style>
